 /* 基础重置 */
 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: #f8f9fa;
    color: #495057;
    line-height: 1.6;
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

/* 表格样式 */
.staff-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border-collapse: collapse;
}
.staff-table thead {
    background: #e9ecef;
}
.staff-table th {
    padding: 16px 24px;
    color: #495057;
    font-weight: 600;
    text-align: left;
}
.staff-table td {
    padding: 14px 24px;
    border-top: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.2s ease;
}
.staff-table tr:hover td {
    background: #f8f9fa;
}
.staff-table tr:last-child td {
    border-bottom: none;
}

/* 弹窗样式 */
.modal-mask {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    z-index: 2000;
}
.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    left: 35%;
    top: 25%;
    max-width: 500px;
    padding: 24px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 弹窗内容 */
.modal-content h3 {
    margin-bottom: 20px;
    color: #212529;
    font-size: 1.4rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 12px;
}
.detail-item {
    margin: 12px 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.detail-item strong {
    width: 80px;
    flex-shrink: 0;
    color: #6c757d;
}

/* 权限下拉框 */
.permission-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    transition: border-color 0.15s ease;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") no-repeat right 12px center/12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.permission-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #495057;
}

 /* 新增按钮样式 */
 .modal-actions {
    margin-top: 20px;
    text-align: right;
}
.confirm-btn {
    padding: 8px 20px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
.cancel-btn {
    padding: 8px 20px;
    background: #909399;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}